// import 进来
import Login from '/views/login/index.js'
import Home from './views/home/index.js'
const routes = [
    { path: '*', redirect: '/login' },
    { path: '/login', component: Login },
    { path: '/home', component: Home }
]

// 创建 router 实例，然后传 `routes` 配置
const router = new VueRouter({
    routes
})

// 创建和挂载根实例
const app = new Vue({
    router
}).$mount('#app')